# encoding=utf8
import sys
import time
import math
reload(sys)
sys.setdefaultencoding('utf8')

class FT_87A0:
    result=[]
    def LogicAisle(self, protocolStr, header):
        count = 0
        s = protocolStr[count:count + 2]
        header.append("故障码类型：" + s  )
        if s=="00":
            header.append("DM1 故障码（实时故障码）" + s)
        elif s=="01":
            header.append("DM2 故障码（历史故障码）" + s)
        elif s == "02":
            header.append("DM1 故障码（实时故障码）和 DM2 故障码（历史故障码）" + s)
        count = count + 2
        s = protocolStr[count:count + 2]
        if s=="ff":
         header.append("节点编号，0xFF：清除所有故障码" + "\n")
        else:
            pass

        self.result = header
